# class 类

class Phone():
    # 初始化结构体
    def __init__(self):
        # 调用原始父类初始化
        super().__init__()
        # 属性特征
        self.color = "red"
        self.logo = "HUAWEI"

    # 行为特征
    def call(self):
        print("打电话")
    def internet(self):
        print("上网")

    def info(self):
        print(f"品牌:{self.logo}, 颜色:{self.color}")

# 对象
a = Phone()  # a 是对象
a.logo = "XIAOMI"
a.color = "black"
a.call()
a.internet()
a.info()